Skip to main content

Kill Process

AutomatR.DefaultActivities.General.KillProcess

The "Kill Process" activity in AutomatR, categorized under Application, terminates a designated Windows process. This activity is useful for automation workflows where it is necessary to end specific processes running on a Windows machine.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Kill Process" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.
IDSpecifies the process ID that you want to terminate. Integer variables containing the process ID.
Process NameSpecifies the name of the process that you want to terminate. String variables containing the process name.

How to use:

  1. Drag and drop the "Kill Process" activity onto the workflow.
  2. Configure the properties by specifying the process name or process ID that you want to terminate.
  3. Optionally, configure the delay based on your requirements.
  4. Execute the workflow to terminate the specified process.

Example: Consider an example where the "Kill Process" activity is used to terminate an instance of Google Chrome:

Kill Process:
Process Name: "chrome"

In this example, the activity terminates all instances of the Google Chrome process running on the current session.